package com.symria.server.po;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * UserInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "USER_INFO")
public class UserInfo implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String userName;
	private Integer userAgent;
	private String password;
	private String realName;
	private Date createDate;
	private Integer groupId;
	private Integer roleId;
	private Double getPercent;
	private String status;
	private Integer serviceId;
	private Integer loginTimes;
	private Date loginDate;
	private String loginIp;
	private String phone;
	private String mobile;
	private String contact;
	private String qq;
	private String msn;
	private String companyName;
	private String companyUrl;
	private String companyAddress;
	private String postCode;

	// Constructors

	/** default constructor */
	public UserInfo() {
	}

	/** minimal constructor */
	public UserInfo(String userName) {
		this.userName = userName;
	}

	/** full constructor */
	public UserInfo(String userName, Integer userAgent, String password,
			String realName, Date createDate, Integer groupId,
			Integer roleId, Double getPercent, String status,
			Integer serviceId, Integer loginTimes, Date loginDate,
			String loginIp, String phone, String mobile, String contact,
			String qq, String msn, String companyName, String companyUrl,
			String companyAddress, String postCode) {
		this.userName = userName;
		this.userAgent = userAgent;
		this.password = password;
		this.realName = realName;
		this.createDate = createDate;
		this.groupId = groupId;
		this.roleId = roleId;
		this.getPercent = getPercent;
		this.status = status;
		this.serviceId = serviceId;
		this.loginTimes = loginTimes;
		this.loginDate = loginDate;
		this.loginIp = loginIp;
		this.phone = phone;
		this.mobile = mobile;
		this.contact = contact;
		this.qq = qq;
		this.msn = msn;
		this.companyName = companyName;
		this.companyUrl = companyUrl;
		this.companyAddress = companyAddress;
		this.postCode = postCode;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "USER_ID", unique = true, nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "USER_NAME", nullable = false, length = 64)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "USER_AGENT")
	public Integer getUserAgent() {
		return this.userAgent;
	}

	public void setUserAgent(Integer userAgent) {
		this.userAgent = userAgent;
	}

	@Column(name = "PASSWORD", length = 32)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "REAL_NAME", length = 64)
	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	@Column(name = "CREATE_DATE", length = 0)
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "GROUP_ID")
	public Integer getGroupId() {
		return this.groupId;
	}

	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	@Column(name = "ROLE_ID")
	public Integer getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	@Column(name = "GET_PERCENT", precision = 22, scale = 0)
	public Double getGetPercent() {
		return this.getPercent;
	}

	public void setGetPercent(Double getPercent) {
		this.getPercent = getPercent;
	}

	@Column(name = "STATUS", length = 1)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "SERVICE_ID")
	public Integer getServiceId() {
		return this.serviceId;
	}

	public void setServiceId(Integer serviceId) {
		this.serviceId = serviceId;
	}

	@Column(name = "LOGIN_TIMES")
	public Integer getLoginTimes() {
		return this.loginTimes;
	}

	public void setLoginTimes(Integer loginTimes) {
		this.loginTimes = loginTimes;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LOGIN_DATE", length = 0)
	public Date getLoginDate() {
		return this.loginDate;
	}

	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}

	@Column(name = "LOGIN_IP", length = 32)
	public String getLoginIp() {
		return this.loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	@Column(name = "PHONE", length = 128)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "MOBILE", length = 20)
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "CONTACT", length = 32)
	public String getContact() {
		return this.contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	@Column(name = "QQ", length = 32)
	public String getQq() {
		return this.qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	@Column(name = "MSN", length = 32)
	public String getMsn() {
		return this.msn;
	}

	public void setMsn(String msn) {
		this.msn = msn;
	}

	@Column(name = "COMPANY_NAME", length = 32)
	public String getCompanyName() {
		return this.companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@Column(name = "COMPANY_URL", length = 128)
	public String getCompanyUrl() {
		return this.companyUrl;
	}

	public void setCompanyUrl(String companyUrl) {
		this.companyUrl = companyUrl;
	}

	@Column(name = "COMPANY_ADDRESS", length = 256)
	public String getCompanyAddress() {
		return this.companyAddress;
	}

	public void setCompanyAddress(String companyAddress) {
		this.companyAddress = companyAddress;
	}

	@Column(name = "POST_CODE", length = 16)
	public String getPostCode() {
		return this.postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

}